package top.iflyoung.cim.biz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @author liguiyang
 * @description P2P之间的交流
 * @sine 1.8
 * @date 2021/9/48:30
 **/
@Data
@TableName("chat_friendship")
public class ChatFriendship extends Model<ChatFriendship> {
    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;
    /**
     * 患者ID
     */
    @TableField("UserId")
    private Long userId;
    /**
     * 医护ID
     */
    @TableField("FriendUserId")
    private Long friendUserId;
    /**
     * 是否删除，true是已删除
     */
    @TableField("IsDel")
    private boolean isDel;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
